package Pattern.StatePattern.Program.programtwo;

public class Professional implements State {
    private State state;

    public Professional() {
    }

    public Professional(State state) {
        this.state = state;
        change(this.state);
    }

    public void doubleScore() {
        System.out.println("Professional could have doubleScore");
    }

    public void changeCards() {
        System.out.println("Professional can changeCards");
    }

    public void play() {
        System.out.println("Professional Play Game");
    }

    @Override
    public void change(State state) {
        play();
        doubleScore();
        changeCards();
        new Final(state);
    }
}
